using System;
using System.Xml.Schema;
using System.Xml.Serialization;
using flickr.api.communication;

namespace flickr.api
{
    [Serializable]
    public class Category : FlickrObject
    {
        [XmlAttribute("name", Form=XmlSchemaForm.Unqualified)]
        public string CategoryName;
    
        [XmlAttribute("path", Form=XmlSchemaForm.Unqualified)]
        public string Path;
    
        [XmlAttribute("pathids", Form=XmlSchemaForm.Unqualified)]
        public string PathIds;

        [XmlElement("subcat", Form=XmlSchemaForm.Unqualified)]
        public SubCategory[] SubCategories;

        [XmlElement("group", Form=XmlSchemaForm.Unqualified)]
        public Group[] Groups;
        
        public Category():base(){}
        public Category(FlickrConnection connection) : base(connection){}
    }
}